package swf
{
	public class SwfTimeProtect
	{
		private static var endYear:uint;
		private static var endMonth:uint;
		private static var endDay:uint;
		private static var endDate:Date;
		public function SwfTimeProtect()
		{
		}
		
		public static function init(y:uint,m:uint,d:uint):void
		{
			endDate=new Date(y,m,d);
		}
		
		public static function timesup():Boolean
		{
			var now:Date=new Date();
			var nowTime:Number=now.time;
			var endTime:Number=endDate.time;
			if(nowTime>endTime)
			{
				return true;
			}
			return false;
		}
		
	}
}